home *** CD-ROM | disk | FTP | other *** search
-
- Brush2Icon Documentation
-
- *****************************************************************************
-
- This program will turn any iff brush or picture into an
- icon for the WorkBench.
- I used to use 'zapicon' and it worked just fine except
- it used GADGHCOMP for the icon's hilighting mode which I
- personal think doesn't look to good. The solution was to
- use zapicon to convert the iff brush to am icon and then
- load the icon into IconEd, change the hilite mode to
- BackFill and resave it. The problem with that approach is
- that IconEd doesn't seem to like icons made with zapicon.
- It loads them just fine but 30-40% of them it doesn't save
- them correctly. I don't know what the problem is but after
- they'd been resaved with IconEd they would appear as almost
- total garbage on the WorkBench. The other problem to that
- approach is that IconEd won't handle large icons. So I
- finally sat down and wrote my own program to do what I
- needed.
- Brush2Icon only runs from the CLI and takes the
- following format
-
- Brush2Icon name brush1 [-abrush2] [-backfill] [-tTYPE]
-
- where 'name' is the name of the file your making an icon
- for. (ie. do NOT include the ".info") 'Brush1' is the IFF
- file that contains the picture to be used for the Icon.
- The rest are optional.
-
- -abrush2 allows you to use a second IFF file for the
- selected image of the icon. I think it is much easier to
- do this here than to make two icons and then run alticon on
- them.
-
- -backfill will set the hilite mode to BACKFILL instead
- of COMPLEMENT which is the default. Note: this option is
- overridden by the -a option.
-
- -tTYPE sets the type of the icon. The default type is
- PROJECT. Valid types are TOOL, PROJECT, DRAWER, DISK and
- GARBAGE
-
- examples.
-
- Brush2Icon Harv Face.pic
-
- Creates an icon for the file 'Harv' (ie. it creates a file
- named 'Harv.info' using the iff image in the file
- 'Face.pic'. The filetype will be PROJECT and the hilite
- type will be COMPLEMENT (GADGHCOMP)
-
- Brush2Icon Harv Face.pic -b -tTOOL
-
- Same as above expect the filetype will be TOOL and the
- hilite type will be BACKFILL.
-
- Brush2Icon Progs Closed.pic -aOpened.pic -tDRAWER
-
- Creates an icon for the drawer 'Progs'. The icon will look
- like the image in the IFF file 'Closed.pic' then when it is
- clicked on or selected it will display the image in the
- file 'Opened.pic'. the filetype is DRAWER and the hilite
- type is GADGHIMAGE.
-
- Brush2Icon
-
- Prints out a few simple instructions.
-
- Note: 1) If you make an alternate image be sure you save
- the two images in the same size. (If you want an
- explanation just try it with different sized ones and see
- what happens. :-D )
- 2) This program doesn't strip extra bitplanes so if
- you draw a 16 color icon it 'SHOULD' save all 4 planes.
- This is a waste of memory if you are only using a 2 plane
- WorkBench but if you have modified your WorkBench for more
- planes then it should allow you to make icons for it.
- (Should means that I haven't actually tried it. I don't
- personally strip the planes but PutDiskObject() might.)
-
-
- I have uploaded the source in case you would like
- to add other features, change the defaults or just see if
- there are some nifty routines you can use in your own
- programs. Actually there are a few but I will upload them
- separately with documentation in the near future.
-
- This program is Public Domain. Please do NOT sell it
- or take credit for work that is not yours. Thank you.
-
- Gregg Tavares
- 10500 National Blvd #24
- Los Angeles, CA 90034
-
- PLINK: GreggT
-
-
-
- *****************************************************************************
-